home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Linking & ODF Draw
- Sent: 6/4/96 9:49 AM
- Received: 6/4/96 2:01 PM
- From: Scott, scottdfl@sprynet.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- > Date: 3 Jun 1996 14:46:45 -0700
- > Reply-to: ODF-Interest@CILabs.ORG
- > From: "Mary Boetcher" <mary_boetcher@quickmail.apple.com>
- > To: OpenDoc Development Framework Discussion List <ODF-Interest@CILabs.ORG>
- > Subject: Re: Linking & ODF Draw
-
- > Reply to: RE>>Linking & ODF Draw
- >
- > >>It appears that the indices are assigned when
- > >>the part is internalized from storage, via "PostInternalizeShape",
- > >>ditto for the selection. So, if I create a new document, draw some
- > >>shapes, save the doc, and reopen it, the shapes will be numbered
- > >>1..n. Then I paste some more shapes, now my doc's shape list is
- > >>numbered 1..n, 1..m. Now I select some shapes (including some that I
- > >>just pasted in). Let's say I have 8 shapes altogether, numbered 1..5,
- > >>1..3, and I select the first, third and last shape. When I copy, the
- > >>selection is externalized with the shape indices of 1, 3 & 3.
- > Actually the selection is externalized with the shape indices of 1, 2 & 3, because
- > the index is reset in CDrawContent::ExternalizeShapeList. However, I see a
- > potential problem when this selection is
- > internalized. If the part's existing
- > shapes are numbered 1..n, then CDrawPart::FindShapeWithIndex may
- > return the wrong shape. I will investigate this further.
-
- > Hope this helps,
- >
- > Mary Boetcher
- > ODF Person
- >
-
- Mary,
-
- I am so sorry, but I am still confused. I understand the basic
- concept of linking, and the OpenDoc creating of link objects for the
- source and dest. links. What I don't understand is the purpose of
- writing the indices. In your original reply, you seem to indicate
- that the indices are only used in a single link context, but they
- seem to stored in the document as well. Also, what about multiple
- links? Since the part's content is searched by index, you must have
- unique indices for all the shapes in the part's content, buth they
- seem to be assign for both the part & the link contents.
-
- You admitted there may be a bug in ODF Draw in this area. In any
- event, I can not tell (obviously from my previous oversight you
- pointed out) what the indices are for. Could you please explain or
- point me to some documentation that would elaborate on exactly what I
- am supposed to do to support linking? As I mentioned in my first
- post, I am writing graphical shapes somewhat like Draw, but in the
- part content, they are not stored sequentially, but they are stored
- sequentially in the selection content. So, I can number them in the
- selection or link content (and even the part content I suppose), but
- I need to know how and when to do this. Especially if ODF Draw has
- some bugs in this matter, I obviously don't want to propigate those
- bugs to my part. Could you please give me a suitable scheme for my
- part?
-
- Thanks very much for your help. I am sorry to be so dense, but Henri
- did say to ask where the documentation was lacking <g>.
-
- Scott Daniels
- e-mail: scottdfl@sprynet.com
- "Life appears the way you choose to see it"
-